﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="OVS._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/OVS.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function setMenu(menu) {

            var menu1 = document.getElementById('menu1');
            var menuVoter = document.getElementById('menuVoter');
            var menuAdmin = document.getElementById('menuAdmin');

            if (menu == "Menu1") {
                menuAdmin.style.display = "none";
                menuVoter.style.display = "none";
                menu1.style.display = "block";

                var frame = document.getElementById('frameContent');
                frame.src = "";
                self.focus();
            }


            if (menu == "Admin") {
                menuAdmin.style.display = "block";
                menuVoter.style.display = "none";
                menu1.style.display = "none";

                var frame = document.getElementById('frameContent');
                frame.src = "";
                self.focus();
            }

            if (menu == "Voter") {
                menuAdmin.style.display = "none";
                menuVoter.style.display = "block";
                menu1.style.display = "none";

                var frame = document.getElementById('frameContent');
                frame.src = "";
                self.focus();
            }

        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <center>
   
                    <table style="background-color: #3B5998" width="80%" cellspacing="0" cellpadding="0">
                       
                        <tr>
                            <td>
                                <asp:Image ID="imgLogo" runat="server" ImageUrl="~/Images/logo.jpg" />                          
                                    
                            </td>
                            <td width="80%" align="right" valign="center">
                                <asp:HyperLink runat="server" ID="hlnkHome" CssClass="menulink" NavigateUrl="~/Default.aspx"
                                    Text="Home"></asp:HyperLink>&nbsp;|
                                <asp:HyperLink runat="server" ID="HyperLink1" CssClass="menulink" NavigateUrl="~/Logout.aspx"
                                    Text="Logout"></asp:HyperLink>&nbsp;|
                                <asp:HyperLink runat="server" ID="HyperLink9" CssClass="menulink" NavigateUrl=""
                                    Text="About Us"></asp:HyperLink>&nbsp;|
                            </td>
                        </tr>
                    </table>
              
                    <table style="width: 80%;" border="1" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 15%; vertical-align: top; ">
                                <div style="width: 100%; height: 550px; border-width: 1px; border-color: #3B5998;
                                    border-style: solid; z-index: 1;">
                                    <div id="menu1" style="display: block;">
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color: #FFCC00">
                                                    <asp:HyperLink runat="server" ID="HyperLink2" CssClass="menu" NavigateUrl="~/Login.aspx"
                                                        Target="frameContent" Text="Login"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink3" CssClass="menu" NavigateUrl="~/ElectionResults.aspx"
                                                        Target="frameContent" Text="Results"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color:#FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink5" CssClass="menu" NavigateUrl="~/ResendPassword.aspx"
                                                        Target="frameContent" Text="Resend Password"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div id="menuVoter" style="display: none;">
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink4" CssClass="menu" NavigateUrl="~/Vote.aspx"
                                                        Target="frameContent" Text="Vote"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div id="menuAdmin" style="display: none;">
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink6" CssClass="menu" NavigateUrl="~/VoterRegister.aspx"
                                                        Target="frameContent" Text="Register Voter"></asp:HyperLink>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink10" CssClass="menu" NavigateUrl="~/SearchVoter.aspx"
                                                        Target="frameContent" Text="Search Voter"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color:#FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink7" CssClass="menu" NavigateUrl="~/RegisterCandidate.aspx"
                                                        Target="frameContent" Text="Register Candidate"></asp:HyperLink>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink11" CssClass="menu" NavigateUrl="~/SearchCandidates.aspx"
                                                        Target="frameContent" Text="Search Candidates"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink8" CssClass="menu" NavigateUrl="~/ManageElections.aspx"
                                                        Target="frameContent" Text="Manage Elections"></asp:HyperLink>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="background-color: #FFCC00;">
                                                    <asp:HyperLink runat="server" ID="HyperLink12" CssClass="menu" NavigateUrl="~/SearchElections.aspx"
                                                        Target="frameContent" Text="Search Elections"></asp:HyperLink>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </td>
                            <td style="width: 85%; vertical-align: top;">
                                <iframe runat="server" id="frameContent" class="frameContent" src="Welcome.aspx" name="frameContent"
                                    marginwidth="0" marginheight="0" frameborder="0" style="border-width: 1px;
                                    border-style: solid; z-index: 1; width: 100%;" scrolling="yes"></iframe>
                            </td>
                        </tr>
                    </table>
             
    </center>
    </form>
</body>
</html>
